package com.java1412.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author java1412
 * @create 2021-06-07 16:49
 */
@Component
@FeignClient(value = "nacos-payment-provider")
public interface PaymentFeignService {
    @GetMapping("/payment/nacos/{id}")
    public String getPayment(@PathVariable("id") Long id);
}
